/* --- ESTILOS GERAIS E RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background: hsla(0, 0%, 20%, 1);
background: radial-gradient(circle, hsla(0, 0%, 20%, 1) 0%, hsla(0, 0%, 0%, 1) 100%);
background: -moz-radial-gradient(circle, hsla(0, 0%, 20%, 1) 0%, hsla(0, 0%, 0%, 1) 100%);
background: -webkit-radial-gradient(circle, hsla(0, 0%, 20%, 1) 0%, hsla(0, 0%, 0%, 1) 100%);
filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#323232", endColorstr="#000000", GradientType=1 );
font-family: 'Alumni Sans SC', sans-serif;
}

main {
    flex-grow: 1; /* Faz o conteúdo principal ocupar o espaço disponível, empurrando o rodapé para baixo */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 70px; /* Espaço para o cabeçalho fixo */
    padding-bottom: 50px; /* Espaço para não colar no rodapé */
}

/* --- ESTILOS DO CABEÇALHO (TOPO) --- */
.topo {
    width: 100%;
    height: 50px;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Alinha logo e menu nas pontas */
    padding: 0 20px;
    font-family: 'ABeeZee', sans-serif;
}

.logo-link .logo-img {
    height: 80px;
    width: 80px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 40px; /* Espaçamento reduzido */
    height: 100%;
    align-items: center;
    margin-right: 100px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: 0.2s;
    opacity: 0.80;
}

.menu a:hover {
    color: #BD2109;
}

.dropdown {
    position: relative;
}

.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(66, 66, 66);
    display: none;
    flex-direction: column;
    min-width: 150px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.dropdown:hover .submenu {
    display: flex;
}

.submenu li a {
    padding: 15px;
    display: block;
}

.menu .separator {
    height: 30px;
    margin-bottom: 10px;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

/* --- ESTILOS DO CARRINHO DE COMPRAS --- */
.cart-container {
    width: 90%;
    max-width: 700px;
    position: relative;
    background-color: rgba(229, 231, 235, 0.9);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    padding: 1.5rem;
    padding-top: 4rem;
    color: #1f2937;
    margin: 40px 0;
}

.cart-container h1 {
    text-align: center;
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr; /* Coluna da foto menor */
    gap: 3px;
    border: 1px solid #9ca3af;
    background-color: #9ca3af;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 20px; /* Fonte menor para caber melhor */
}

.cart-table-header div {
    background-color: #d1d5db;
    padding: 1.0rem;
}

/* Estilos para o cabeçalho da tabela */
.table thead th {
    padding: 1.5rem;
    font-size: 0.77rem;
    background-color: #d1d5db;
    color: #1f2937;
    font-weight: 600;
    text-transform: uppercase;
}

.cart-body {
    border-left: 1px solid #9ca3af;
    border-right: 1px solid #9ca3af;
    border-bottom: 1px solid #9ca3af;
    background-color: rgba(255, 255, 255, 0.5);
}

.cart-items-area {
    padding: 0px 0;
    min-height: 250px; /* Altura mínima reduzida para ser mais flexível */
}

.cart-logo-watermark {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.cart-logo-watermark img {
    height: 8rem;
    width: 8rem;
    opacity: 0.8;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #d1d5db;
}

.cart-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha */
}

.cart-buttons button {
    background-color: #000;
    color: #FFBD1B;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-buttons button:hover {
    background-color: #1f2937;
    color: #FFBD1B;
}

.subtotal {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

/* estilo do Rodape*/
.footer-container {
    background-color:#000000;
    color: #FFBD1B;
    padding: 40px 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-title {
    font-size: 23px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-family: ABeeZee, sans-serif;
}

.footer-column p,
.footer-column a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
    font-size: 20px;
    display: block;
    font-family: Alumni Sans SC, sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-column a:hover {
    color: #FFBD1B; /* Muda a cor para amarelo */
}
/* FIM CCS DA PAGINA --------

/* --- ELEMENTOS DECORATIVOS --- */
.capacete {
    height: 200px;
    width: 200px;
    position: absolute;
    top: 70px;
    right: 20px;
    opacity: 1;
    z-index: -1;
}
.btn-elegant {
  background-color: #000;
  color: #ffbd1b;
  border: 2px solid #ffbd1b;
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-elegant:hover {
  background-color: #ffbd1b;
  color: #000;
  transform: translateY(-3px);
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-danger:hover {
  background-color: #c82333;
  color: white;
}




/**************************************************
* --- MEDIA QUERIES PARA RESPONSIVIDADE --- *
**************************************************/

/* --- TABLETS E TELAS MENORES (ATÉ 992px) --- */
@media (max-width: 992px) {
    .capacete {
        display: none; /* Esconde o capacete para não atrapalhar */
    }

    .menu .separator {
        display: none; /* Esconde os separadores para ganhar espaço */
    }

    .menu {
        gap: 15px; /* Diminui ainda mais o espaçamento */
    }

    .menu a {
        font-size: 16px;
    }
}


/* --- CELULARES (ATÉ 768px) --- */
@media (max-width: 768px) {
    /* --- AJUSTES NO MENU --- */
    .menu {
        display: none; /* Esconde o menu desktop */
        position: absolute;
        top: 50px; /* Aparece abaixo do cabeçalho */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 0;
    }

    .menu.active {
        display: flex; /* Mostra o menu quando o JS adicionar a classe 'active' */
        background-color: #333;
    }

    .menu li {
        width: 100%;
        text-align: center;
        background-color: #333;
    }

    .menu a {
        padding: 15px 0;
        width: 100%;
        display: block; /* Garante que o link ocupe todo o espaço */
    }
    
    .submenu {
        position: static; /* Submenu vira parte do fluxo normal do menu mobile */
        width: 100%;
        background-color: #333;
        box-shadow: none;
    }
    
    .submenu li a {
        padding-left: 40px; /* Adiciona um recuo para indicar que é um sub-item */
    }

    .hamburger {
        display: flex; /* Mostra o botão hambúrguer */
    }

    /* --- AJUSTES NO CARRINHO DE COMPRAS --- */
    .cart-container {
        padding: 1rem; /* Diminui o padding em telas pequenas */
        margin: 0 auto; /* Centraliza o carrinho */
    }

    .cart-table-header {
        display: none; /* Esconde o cabeçalho da tabela, pois não funciona no mobile */
    }

    .cart-body {
        border: none;
    }

    /* ESTILO PARA CADA ITEM DO CARRINHO (EXEMPLO) */
    /* Você precisará de uma div com a classe .cart-item para cada produto no seu HTML/JS */
    .cart-item {
        display: grid;
        grid-template-areas:
            "img info remove"
            "img qty price";
        grid-template-columns: 70px 1fr auto;
        gap: 10px;
        padding: 15px 5px;
        border-bottom: 1px solid #ccc;
        align-items: center;
    }
    
    .cart-footer-content, .cart-buttons {
        flex-direction: column; /* Empilha os botões e subtotal */
        align-items: center; /* Centraliza */
        width: 100%;
    }
    
    .cart-buttons button {
        width: 100%;
        text-align: center;
    }

    .subtotal {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* --- AJUSTES NO RODAPÉ --- */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}